import request from '@/utils/request'

// 查询商会成员入会申请列表
export function listApplication(query) {
  return request({
    url: '/system/application/list',
    method: 'get',
    params: query
  })
}

// 查询商会成员入会申请详细
export function getApplication(id) {
  return request({
    url: '/system/application/' + id,
    method: 'get'
  })
}

// 新增商会成员入会申请
export function addApplication(data) {
  return request({
    url: '/system/application',
    method: 'post',
    data: data
  })
}

// 修改商会成员入会申请
export function updateApplication(data) {
  return request({
    url: '/system/application',
    method: 'put',
    data: data
  })
}

// 删除商会成员入会申请
export function delApplication(id) {
  return request({
    url: '/system/application/' + id,
    method: 'delete'
  })
}


// 审核通过
export function approveApplication(ids) {
  return request({
    url: '/system/application/approve',
    method: 'put',
    data: ids
  })
}

// 审核拒绝
export function rejectApplication(ids) {
  return request({
    url: '/system/application/reject',
    method: 'put',
    data: ids
  })
}